package cn.itsource.system.mapper;

import cn.itsource.system.domain.Role;
import cn.itsource.basic.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author h
 * @since 2023-07-14
 */
public interface RoleMapper extends BaseMapper<Role> {

    void insertRoleMenu(@Param("menus") List<Long> menus, @Param("roleId") Long roleId);

    void insertRolePermission(@Param("permissions")List<Long> permissions, @Param("roleId") Long roleId);
}
